package com.mine.modules.vm.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mine.common.domain.vo.Result;
import com.mine.modules.sys.domain.dto.RoleDto;
import com.mine.modules.vm.domain.dto.VmPermissionDto;
import com.mine.modules.vm.entity.VmPermission;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * <p>
 * 菜单权限表 服务类
 * </p>
 *
 * @author author
 * @since 2024-10-09
 */
public interface IVmPermissionService extends IService<VmPermission> {

    Result<?> listAll(String keywords, HttpServletRequest req);

    Result<?> addOrEdit(VmPermissionDto permissionDto);

    Result<?> delete(String id);

    Result<?> deleteBatch(String ids);

    Result<List<String>> queryRolePermission(String roleId);

    Result<?> saveRolePermission(RoleDto roleDto);

    Result<?> getUserPermissionByToken();

}
